package com.bfsoft.springbootinit.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * (用户表)SYS_USER
 * </p>
 *
 * @author xxx
 * @since 2024-10-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("SYS_USER")
public class SysUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId("ID")
    private String id;

    /**
     * 用户姓名
     */
    @TableField("USER_NAME")
    private String userName;

    /**
     * 所属公司ID
     */
    @TableField("COMPANY_ID")
    private String companyId;

    /**
     * 所属基地ID
     */
    @TableField("BASE_ID")
    private String baseId;

    /**
     * 用户账号名
     */
    @TableField("USER_ACCOUNT_NAME")
    private String userAccountName;

    /**
     * 密码
     */
    @TableField("PASSWORD")
    private String password;

    /**
     * 备注
     */
    @TableField("REMARKS")
    private String remarks;

    /**
     * 创建人
     */
    @TableField(value = "CREATE_BY",fill = FieldFill.INSERT)
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(value = "CREATE_TIME",fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改人
     */
    @TableField(value = "UPDATE_BY",fill = FieldFill.INSERT_UPDATE)
    private String updateBy;

    /**
     * 修改时间
     */
    @TableField(value = "UPDATE_TIME",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 逻辑删除
     */
    @TableLogic
    @TableField(value = "DEL_FLAG",fill = FieldFill.INSERT)
    private String delFlag;


}
